package com.power.feign;

import com.power.domain.Prod;
import com.power.feign.sentinel.MemberProdFrignSentinel;
import com.power.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description 会员业务模块调用商品业务模块的Feign接口
 * @Author dingchunlin
 * @Date 2024/07/21 15:02
 * @Version 1.0.0
 */
@FeignClient(value = "product-service", fallback = MemberProdFrignSentinel.class)
public interface MemberProdFrign {

    @GetMapping("/prod/prod/getProdListById")
    public Result<List<Prod>> getProdListByIds(@RequestParam List<Long> prodIdList);

}
